//
//  RBOrderModel.h
//  zhongzhenglu
//
//  Created by 马军凯 on 2023/3/21.
//

#import "RBResponse.h"
#import "RBCartResponse.h"

NS_ASSUME_NONNULL_BEGIN

@interface RBOrderModel : RBResponse

@end

@interface RBOrderListModel : RBResponse
@property (nonatomic, copy) NSString *doctor_name;
@property (nonatomic, copy) NSString *order_status;
@property (nonatomic, copy) NSString *file;
@property (nonatomic, copy) NSString *goods_name;
@property (nonatomic, copy) NSString *institution_name;
@property (nonatomic, copy) NSString *store_id;
@property (nonatomic, copy) NSString *store_name;
@property (nonatomic, copy) NSString *patient_name;
@property (nonatomic, copy) NSString *order_id;
@property (nonatomic, copy) NSString *order_number;
@property (nonatomic, copy) NSString *doctor_mobile;
@property (nonatomic, copy) NSString *quantity;
@property (nonatomic, copy) NSString *picarr;
@property (nonatomic, copy) NSString *total_price;
@property (nonatomic, copy) NSString *postscript;
@property (nonatomic, copy) NSString *goods_id;
@property (nonatomic, copy) NSString *logo;
@property (nonatomic, copy) NSString *patient_sex;
@property (nonatomic, copy) NSString *institution_address;
@property (nonatomic, copy) NSString *order_goods_id;

@end

@interface RBOrderDetailZiTiInfoModel : RBResponse
@property (nonatomic, copy) NSString *add_pro;
@property (nonatomic, copy) NSString *address;
@property (nonatomic, copy) NSString *title;
@property (nonatomic, copy) NSString *add_city;
@property (nonatomic, copy) NSString *zt_id;
@property (nonatomic, copy) NSString *add_area;
@end

@interface RBOrderDetailModel : RBResponse
//
@property (nonatomic, copy) NSString *doctor_name;
//订单号
@property (nonatomic, copy) NSString *order_number;
//实付金额
@property (nonatomic, copy) NSString *total_price;
//优惠券金额
@property (nonatomic, copy) NSString *total_coupon_price;
//运费金额
@property (nonatomic, copy) NSString *total_freight;
//原价
@property (nonatomic, copy) NSString *original_price;
//数量
@property (nonatomic, copy) NSString *quantity;
//下单时间
@property (nonatomic, copy) NSString *create_time;
//支付方式 0未支付 1微信 2支付宝 3余额 4好友代付
@property (nonatomic, copy) NSString *pay_type;
//支付时间
@property (nonatomic, copy) NSString *pay_time;
//邮寄方式【1-快递 | 2-自提】
@property (nonatomic, copy) NSString *mail_type;
//收货人姓名
@property (nonatomic, copy) NSString *consignee_name;
//收货人联系方式
@property (nonatomic, copy) NSString *consignee_phone;
//配送的省
@property (nonatomic, copy) NSString *address_province;
//配送的市
@property (nonatomic, copy) NSString *address_city;
//配送的区
@property (nonatomic, copy) NSString *address_area;
//配送的详细地址
@property (nonatomic, copy) NSString *address_details;
//订单状态 0未支付 1已支付待发货 2已发货待确认 3确认收货 4已评价 5退款 6已完成 7已取消
@property (nonatomic, copy) NSString *order_status;
//拼接后详细收货地址
@property (nonatomic, copy) NSString *full_address;
//商品图片
@property (nonatomic, copy) NSString *file;
//商品名称
@property (nonatomic, copy) NSString *goods_name;
//参数说明
@property (nonatomic, retain) NSArray *spec_key_name;
//
@property (nonatomic, copy) NSString *institution_name;
//店铺名称
@property (nonatomic, copy) NSString *store_name;
//
@property (nonatomic, copy) NSString *patient_name;
//
@property (nonatomic, copy) NSString *doctor_mobile;
//
@property (nonatomic, copy) NSString *picarr;
//
@property (nonatomic, copy) NSString *postscript;
//
@property (nonatomic, copy) NSString *patient_sex;
//
@property (nonatomic, copy) NSString *institution_address;
//
@property (nonatomic, copy) NSString *order_goods_id;
//商品ID
@property (nonatomic, copy) NSString *goods_id;
//积分抵扣的金额
@property (nonatomic, copy) NSString *jifen_money;
//使用的积分
@property (nonatomic, copy) NSString *total_jifen;
//是否使用积分 1是 0否
@property (nonatomic, copy) NSString *use_jifen;
//自提信息
@property (nonatomic, strong) RBOrderDetailZiTiInfoModel *ziti_info;
//
@property (nonatomic, copy) NSString *kuaidi_company_name;
@property (nonatomic, copy) NSString *kuaidi_order_num;
@property (nonatomic, copy) NSString *shipping_time;

@end

@interface RBOrderShopAddressModel : RBResponse
@property (nonatomic, copy) NSString *id;
@property (nonatomic, copy) NSString *store_name;
@property (nonatomic, copy) NSString *hot_phone;
@property (nonatomic, copy) NSString *mobile;
@property (nonatomic, copy) NSString *province;
@property (nonatomic, copy) NSString *logo;
@property (nonatomic, copy) NSString *address;
@property (nonatomic, copy) NSString *city;
@property (nonatomic, copy) NSString *qu;
@property (nonatomic, copy) NSString *picarr;
@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *content;
@end















//MARK: 加工订单信息
@interface RBAddOrderUserDetailModel : RBResponse
@property (nonatomic, copy) NSString *mobile;
@property (nonatomic, copy) NSString *job_name;
@property (nonatomic, copy) NSString *company_name;
@property (nonatomic, copy) NSString *city;
@property (nonatomic, copy) NSString *district;
@property (nonatomic, copy) NSString *addr_detail;
@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *province;
@end


@interface RBAddOrderModel : RBResponse
//图片
@property (nonatomic, copy) NSString *picurl;
//商品名称
@property (nonatomic, copy) NSString *good_name;
//属性
@property (nonatomic, retain) NSArray *goods_spec;
//
@property (nonatomic, strong) RBAddOrderUserDetailModel *user_detail;
@end

@interface RBAddOrderSpecModel : RBResponse
/**1显示 0不显示*/
@property (nonatomic, assign) NSInteger status;
/**外层容器（1是 0否）    */
@property (nonatomic, assign) BOOL is_box;
//商品类型id
@property (nonatomic, copy) NSString *id;
/**模板类型: 1单选模板[显示]; 2多选模板[弹出]; 3选择器模板[弹出];
 4单选模板[弹出][多项]; 5牙位模板[显示]; 6牙排模板[弹出]    */
@property (nonatomic, assign) NSInteger model_type;
/**加价方式 0 固定价格 1 属性价格 2商品价格    */
@property (nonatomic, assign) NSInteger is_add_type;
/**固定价格*/
@property (nonatomic, copy) NSString *base_price;
/**是否计算属性价格0 否 1 是    */
@property (nonatomic, assign) BOOL is_price;
/**商品类型名称*/
@property (nonatomic, copy) NSString *name;
/** 子属性 */
@property (nonatomic, retain) NSArray *spec;

//计算属性
/** 层深: 2/3 */
@property (nonatomic, assign) NSInteger level;
/** 针对model_type == 1 */
@property (nonatomic, assign) NSInteger selIndex;

@end

@interface RBAddOrderSpecItemModel : RBResponse
//
@property (nonatomic, copy) NSString *is_del;
//
@property (nonatomic, copy) NSString *spec_name;
//
@property (nonatomic, copy) NSString *spec_price;
//
@property (nonatomic, copy) NSString *id;
//
@property (nonatomic, copy) NSString *type_id;
//
@property (nonatomic, assign) BOOL is_default;
//
@property (nonatomic, copy) NSString *is_box;
//
@property (nonatomic, copy) NSString *pid;
//
@property (nonatomic, retain) NSArray *spec_son;

#pragma mark - 计算值
@property (nonatomic, assign) BOOL selected;
@property (nonatomic, assign) NSInteger count;

@end



//加工订单提交需要的参数
@interface RBAddOrderSubmitModel : RBResponse
//用户ID
@property (nonatomic, copy) NSString *user_id;
//订单ID
@property (nonatomic, copy) NSString *parent_id;
//商品ID
@property (nonatomic, copy) NSString *goods_id;
//订单号
@property (nonatomic, copy) NSString *order_num;
//订单状态
@property (nonatomic, copy) NSString *order_type;
//邮寄方式
@property (nonatomic, copy) NSString *mail_type;
//商品数量
@property (nonatomic, copy) NSString *total_num;
//商品属性
@property (nonatomic, copy) NSString *spec_key;
//机构名称
@property (nonatomic, copy) NSString *institution_name;
//机构地址
@property (nonatomic, copy) NSString *institution_address;
//医生姓名
@property (nonatomic, copy) NSString *doctor_name;
//医生电话
@property (nonatomic, copy) NSString *doctor_mobile;
//患者姓名
@property (nonatomic, copy) NSString *patient_name;
//患者性别
@property (nonatomic, copy) NSString *patient_sex;
//医生附言
@property (nonatomic, copy) NSString *postscript;
//图片
@property (nonatomic, copy) NSString *picarr;

@end

NS_ASSUME_NONNULL_END
